export function resizeWidth(width, defaultWidth = 1920) {
  return (width / defaultWidth) * window.screen.width
}

export function resizeHeight(height, defaultHeight = 1080) {
  return (height / defaultHeight) * window.screen.height
}

export function scrollToBottom(dom) {
  if (dom) {
    dom.scrollTop = dom.scrollHeight
  }
}
